<link type="text/css" rel="stylesheet" href="http://www.12301.cc/tpl/new_tpl/credit/css/credit.css" />
<link type="text/css" rel="stylesheet" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
<script type="text/javascript" src="http://www.12301.cc/tpl/new_tpl/credit/js/page.js"></script>
<script type="text/javascript" src="http://www.12301.cc/tpl/channels_confd/js/global.js"></script>
<style type="text/css">
.fund{display:none;background:white; left:50%; margin-left:-195px; margin-top:-100px; position:absolute; top:50%; width:390px; height:300px; padding:5px 20px 15px; z-index:100;}
.fund table{ margin-top:0px;}
.fund table thead th{text-align:left; padding:0 7px; height:40px; line-height:40px; border-bottom:2px solid #999; font-weight: bold; font-size:14px;}
.fund table thead{ background-color:transparent; height:auto; border:0;}
.fund table thead th span{ cursor:pointer; display:inline-block; float:right; width:17px; height:17px; background:url(images/close.png) no-repeat; margin-top:12px;}
.fund table td{ height:auto; padding:15px; text-align:left;}
.fund table td p{font-weight:bold; text-align:left;height:30px; line-height:30px;}
.fund table td p font{margin:0 5px;}
.fund table td span{line-height:30px;}
.fund table td span.yuck{display:inline-block;width:69px;height:40px;line-height:40px;}
#money_u{ height:18px; line-height:18px; padding:2px 4px; border:1px solid #CCCCCC; width:60px; margin:12px 4px 0;}
#money{ height:18px; line-height:18px; padding:2px 4px; border:1px solid #CCCCCC; width:100px;}
#bei{ resize: none;height:60px; line-height:18px; padding:2px 4px; border:1px solid #CCCCCC; width:200px;}
.fund table td span.qd input{ background:url(images/btn23bg2.png) repeat-x; border:1px solid #FF8000; border-bottom-color:#F55C00; height:25px;  line-height:23px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; color:#FFF; font-weight:bold; margin:15px 0 0 55px; *margin-left:10px; padding:0 10px;}
.fund table td span.qd input:hover{ background:url(images/btn23bg22.png) repeat-x;}
.mc_title a{float:right; margin-right:50px; line-height:25px;}
.dismtab tbody td.txtlf{ text-align:left; padding-left:8px;}
#excel{width:80px;height:30px;float:right;border:none;background:#00AAD3;cursor:pointer;color:#FFF;}
#excel:hover{background:#03A2C9;}
</style>
<div class="credit_active">
	<ul id="tabHead" class="tabHead clearfix">
        <li class="profit">授信/预存</li>
    </ul>
	<div class="credit_search">
		<div class="search_left">
			<span class="search_titile" time="">时间：</span>
			<div class="search">
				<input class="formInp_a" id="search_t" value="" type="text">
				<input class="formInp_b" id="search_d" value="" type="text">
				<i class="calendarBtn c1"></i>
				<i class="calendarBtn c2"></i>
				<i class="calendarBtn_ c3">—</i>
			</div>
			<span class="save_btn" id="scope_btn">查询</span>
		</div>
		<div class="search_right">
			<div class="sera">
				<i class="up_tic"></i>
				<span class="up_title">导出数据</span>
			</div>
		</div>
	</div>
</div>
<div class="credit_ti">
	<div class="credit_title">
		<p class="credit_p"><span class="credit_cei">供应商：</span><span class="credit_sup">大供应商公司</span></p>
		<p class="credit_p">
			<span class="credit_cea">授信额度：</span>
			<span class="credit_supa">5145111</span><span class="yuan">元</span>
			<span class="credit_ceb">授信可用额度：</span>
			<span class="credit_supb">5111</span><span class="yuan">元</span>
			<span class="credit_cec">交易合计：</span>
			<span class="credit_supc">51</span><span>元</span>
		</p>
		<a href="javascript:void(0)" onclick="setFund(65,this)" class="credit_partner" >预存/还款充值</a>
	</div>
	<table class="tb_card" id="mlistUl" border="0" cellpadding="0" cellspacing="0"></table>
	<div class="tcdPageCode"></div>
	<div class="page_list">
		到
		<input type="text" class="page_num formI" value="">
		页
		<span class="page_sub">跳转</span>
	</div>
</div>
<div id="fund" class="fund">
        <table class="dismtab">
            <thead>
                <th><span class="close"></span> - <font id="info" color="green"></font></th>
            </thead>
            <tbody>
                <tr>
                    <td>
                      <form name="pay" action="call/setFund_n.php" target="ifr">
                        <input type="hidden" name="did" id="did" />
                     <!--    <input type="hidden" name="act" id="act" value="z" />
                        <span class="yuck">线下充值其资金账户<input type="text" name="tmoney" id="money" />元</span><br />
                        <span class="qd"><input type="button" onclick="paytype(2)" value="确 认 充 值" /></span>
                        <span class="qd"><input type="button" onclick="$('#fund').hide();$('#mask').hide();" value=" 取 消 " /></span>
 -->
                        <input type="hidden" name="act" id="act" value="r" />
                        <p>当前供应账户余额<font id="tmoney" color="green"></font>元</p>
                        <span class="yuck">预存/还款：</span><input type="text" name="money" id="money" />&nbsp;&nbsp;元<br />
                        <span class="yuck">备注：</span><textarea name="memo" id="bei" maxlength="200" ></textarea>&nbsp;&nbsp;元<br />
                        <span class="qd"><input type="button" onclick="paytype(0)" value="使用账户余额" /></span>
						<span class="qd"><input type="button" id="ali" onclick="paytype(1)" value="通过支付宝" /></span>
                      </form>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>

<script src="http://www.12301.cc/js/WdatePicker.js"></script>
<script type="text/javascript" src="http://wx.12301.cc/public/js/common/class.js"></script>
<script type="text/javascript" src="http://wx.12301.cc/public/js/common/ajax.js"></script>

<script type="text/javascript" src="http://www.12301.cc/tpl/new_tpl/credit/js/credit.js"></script>
<script>
window.onload = function(){  
	var pa = Number($(".search_titile").attr("time"));
	var qQuery = new Query({container:$(".tb_card")});
	$(".tcdPageCode").createPage({
			pageCount:pa,
			current:1,
			 backFn:function(p){
			   qQuery.query({
				 pid : 16506,
				 sid : 0,
				 last:p
				});
			 }
	});
};
	$(".page_sub").on("click",function(){
		var num = Number($(".page_num").val());
		var pa = Number($(".search_titile").attr("time"));
		if(!num || !PFT_GLOBAL.U.isPositiveNum(num)){
			PFT_GLOBAL.U.Alert("fail",'<p style="width:240px">抱歉跳页必须大于0的整数</p>');
			return false;
		}else{
			if(num>pa){
				PFT_GLOBAL.U.Alert("fail",'<p style="width:240px">抱歉最多只有'+pa+'页</p>');
				return false;
			}else{
				var qQuery = new Query({container:$(".tb_card")});
				$(".tcdPageCode").createPage({
					pageCount:pa,
					current:num,
					backFn:function(p){
					  
					 }
				});
				 qQuery.query({
					pid : 16506,
					sid : 0,
					last:num
				});
			}
		}
	});
function setFund(id,a){
    $('#fund').show();
    $('#mask').show();
    // var td=$(a).parent().parent().children();
    // $("#info").html(td.eq(0).html());
    // $("#tmoney").html(td.eq(3).html());
    // $("#cmoney").val(td.eq(4).html());
    // $("#did").val(id);
    // $("#ali").val('通过支付宝');
}
$(".close").live("click",function(){
    $('#fund').hide();
    $('#mask').hide();
})
</script>





